<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{pcPurchaseReqBean.id}"/>
		<f:event type="preRenderView" listener="#{pcPurchaseReqBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Pc Purchase Req"/>

	<ui:define name="header">
		Pc Purchase Req
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty pcPurchaseReqBean.id}">
				Edit existing Pc Purchase Req
			</c:when>
			<c:otherwise>
				Create a new Pc Purchase Req
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrNo" value="Pr No:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrNo" required="true" value="#{pcPurchaseReqBean.pcPurchaseReq.prNo}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPcPurchaseReqStatus" value="Pc Purchase Req Status:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{pcPurchaseReqStatusBean.converter}" id="pcPurchaseReqBeanPcPurchaseReqPcPurchaseReqStatus" value="#{pcPurchaseReqBean.pcPurchaseReq.pcPurchaseReqStatus}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{pcPurchaseReqStatusBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPcPurchaseReqStatus" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqSysTermOfPayment" value="Sys Term Of Payment:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysTermOfPaymentBean.converter}" id="pcPurchaseReqBeanPcPurchaseReqSysTermOfPayment" value="#{pcPurchaseReqBean.pcPurchaseReq.sysTermOfPayment}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTermOfPaymentBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqSysTermOfPayment" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqMmSupplierType" value="Mm Supplier Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmSupplierTypeBean.converter}" id="pcPurchaseReqBeanPcPurchaseReqMmSupplierType" value="#{pcPurchaseReqBean.pcPurchaseReq.mmSupplierType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmSupplierTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqMmSupplierType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqMmSupplier" value="Mm Supplier:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmSupplierBean.converter}" id="pcPurchaseReqBeanPcPurchaseReqMmSupplier" value="#{pcPurchaseReqBean.pcPurchaseReq.mmSupplier}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmSupplierBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqMmSupplier" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqHrEmp" value="Hr Emp:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{hrEmpBean.converter}" id="pcPurchaseReqBeanPcPurchaseReqHrEmp" value="#{pcPurchaseReqBean.pcPurchaseReq.hrEmp}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{hrEmpBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqHrEmp" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqSysTitleName" value="Sys Title Name:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysTitleNameBean.converter}" id="pcPurchaseReqBeanPcPurchaseReqSysTitleName" value="#{pcPurchaseReqBean.pcPurchaseReq.sysTitleName}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTitleNameBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqSysTitleName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrCode" value="Pr Code:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrCode" maxLength="50" required="true" value="#{pcPurchaseReqBean.pcPurchaseReq.prCode}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrDescr" value="Pr Descr:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrDescr" maxLength="100" required="true" value="#{pcPurchaseReqBean.pcPurchaseReq.prDescr}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrDate" value="Pr Date:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrDate" maxLength="10" required="true" value="#{pcPurchaseReqBean.pcPurchaseReq.prDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrSupplierCode" value="Pr Supplier Code:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrSupplierCode" maxLength="50" value="#{pcPurchaseReqBean.pcPurchaseReq.prSupplierCode}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrSupplierCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrSupplierFirstName" value="Pr Supplier First Name:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrSupplierFirstName" maxLength="50" value="#{pcPurchaseReqBean.pcPurchaseReq.prSupplierFirstName}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrSupplierFirstName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrSupplierMidName" value="Pr Supplier Mid Name:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrSupplierMidName" maxLength="50" value="#{pcPurchaseReqBean.pcPurchaseReq.prSupplierMidName}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrSupplierMidName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrSupplierLastName" value="Pr Supplier Last Name:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrSupplierLastName" maxLength="50" value="#{pcPurchaseReqBean.pcPurchaseReq.prSupplierLastName}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrSupplierLastName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrSupplierIdCardNo" value="Pr Supplier Id Card No:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrSupplierIdCardNo" maxLength="20" value="#{pcPurchaseReqBean.pcPurchaseReq.prSupplierIdCardNo}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrSupplierIdCardNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrTermOfPaymentCode" value="Pr Term Of Payment Code:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrTermOfPaymentCode" maxLength="50" value="#{pcPurchaseReqBean.pcPurchaseReq.prTermOfPaymentCode}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrTermOfPaymentCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrDiscountPerc" value="Pr Discount Perc:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrDiscountPerc" required="true" value="#{pcPurchaseReqBean.pcPurchaseReq.prDiscountPerc}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrDiscountPerc" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrDiscountVal" value="Pr Discount Val:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrDiscountVal" required="true" value="#{pcPurchaseReqBean.pcPurchaseReq.prDiscountVal}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrDiscountVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrDiscountTotal" value="Pr Discount Total:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrDiscountTotal" required="true" value="#{pcPurchaseReqBean.pcPurchaseReq.prDiscountTotal}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrDiscountTotal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrStatusIncVat" value="Pr Status Inc Vat:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrStatusIncVat" required="true" value="#{pcPurchaseReqBean.pcPurchaseReq.prStatusIncVat}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrStatusIncVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrVatPercVal" value="Pr Vat Perc Val:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrVatPercVal" required="true" value="#{pcPurchaseReqBean.pcPurchaseReq.prVatPercVal}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrVatPercVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrTotalPriceExcVat" value="Pr Total Price Exc Vat:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrTotalPriceExcVat" required="true" value="#{pcPurchaseReqBean.pcPurchaseReq.prTotalPriceExcVat}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrTotalPriceExcVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrTotalVat" value="Pr Total Vat:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrTotalVat" required="true" value="#{pcPurchaseReqBean.pcPurchaseReq.prTotalVat}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrTotalVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrTotalPrice" value="Pr Total Price:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrTotalPrice" required="true" value="#{pcPurchaseReqBean.pcPurchaseReq.prTotalPrice}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrTotalPrice" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrCreatedDtm" value="Pr Created Dtm:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrCreatedDtm" maxLength="19" value="#{pcPurchaseReqBean.pcPurchaseReq.prCreatedDtm}">
						<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
					</h:inputText>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrCreatedDtm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrMemo" value="Pr Memo:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReqBeanPcPurchaseReqPrMemo" maxLength="500" value="#{pcPurchaseReqBean.pcPurchaseReq.prMemo}"/>
					<h:message for="pcPurchaseReqBeanPcPurchaseReqPrMemo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPcPurchaseOrders" value="Pc Purchase Orders:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{pcPurchaseReqBean.pcPurchaseReq.pcPurchaseOrders}"/>
					<h:dataTable id="pcPurchaseReqBeanPcPurchaseReqPcPurchaseOrders" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po No"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoNo" value="#{_item.poNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoNo" value="#{pcPurchaseOrderBean.add.poNo}"/>
								<h:message for="pcPurchaseOrderBeanAddPoNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Code"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoCode" value="#{_item.poCode}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoCode" maxLength="50" value="#{pcPurchaseOrderBean.add.poCode}"/>
								<h:message for="pcPurchaseOrderBeanAddPoCode" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Descr"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoDescr" value="#{_item.poDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoDescr" maxLength="100" value="#{pcPurchaseOrderBean.add.poDescr}"/>
								<h:message for="pcPurchaseOrderBeanAddPoDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Date"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoDate" value="#{_item.poDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoDate" maxLength="10" value="#{pcPurchaseOrderBean.add.poDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="pcPurchaseOrderBeanAddPoDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Discount Perc"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrder/view">
								<f:param name="id" value="#{_item.poNo}"/>
								<h:outputText id="itemPoDiscountPerc" value="#{_item.poDiscountPerc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderBeanAddPoDiscountPerc" value="#{pcPurchaseOrderBean.add.poDiscountPerc}"/>
								<h:message for="pcPurchaseOrderBeanAddPoDiscountPerc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(pcPurchaseOrderBean.added)}" id="pcPurchaseReqBeanPcPurchaseReqPcPurchaseOrdersAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{pcPurchaseOrderBean.add.pcPurchaseReq}" value="#{pcPurchaseReqBean.pcPurchaseReq}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPcPurchaseReqItems" value="Pc Purchase Req Items:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{pcPurchaseReqBean.pcPurchaseReq.pcPurchaseReqItems}"/>
					<h:dataTable id="pcPurchaseReqBeanPcPurchaseReqPcPurchaseReqItems" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Qty"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReqItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPrQty" value="#{_item.prQty}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqItemBeanAddPrQty" value="#{pcPurchaseReqItemBean.add.prQty}"/>
								<h:message for="pcPurchaseReqItemBeanAddPrQty" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Ppu"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReqItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPrPpu" value="#{_item.prPpu}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqItemBeanAddPrPpu" value="#{pcPurchaseReqItemBean.add.prPpu}"/>
								<h:message for="pcPurchaseReqItemBeanAddPrPpu" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Status Inc Vat"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReqItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPrStatusIncVat" value="#{_item.prStatusIncVat}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqItemBeanAddPrStatusIncVat" value="#{pcPurchaseReqItemBean.add.prStatusIncVat}"/>
								<h:message for="pcPurchaseReqItemBeanAddPrStatusIncVat" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Vat Perc Val"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReqItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPrVatPercVal" value="#{_item.prVatPercVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqItemBeanAddPrVatPercVal" value="#{pcPurchaseReqItemBean.add.prVatPercVal}"/>
								<h:message for="pcPurchaseReqItemBeanAddPrVatPercVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Vat Val"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReqItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPrVatVal" value="#{_item.prVatVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqItemBeanAddPrVatVal" value="#{pcPurchaseReqItemBean.add.prVatVal}"/>
								<h:message for="pcPurchaseReqItemBeanAddPrVatVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(pcPurchaseReqItemBean.added)}" id="pcPurchaseReqBeanPcPurchaseReqPcPurchaseReqItemsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{pcPurchaseReqItemBean.add.pcPurchaseReq}" value="#{pcPurchaseReqBean.pcPurchaseReq}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{pcPurchaseReqBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty pcPurchaseReqBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{pcPurchaseReqBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{pcPurchaseReqBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>